<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Special Tags : Ionize User Guide</title>

<style type='text/css' media='all'>@import url('../userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../userguide.css' />

<script type="text/javascript" src="../nav/nav.js"></script>
<script type="text/javascript" src="../nav/prototype.lite.js"></script>
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript" src="../nav/user_guide_menu.js"></script>

<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
<meta name='author' content='Ionize Dev Team' />
<meta name='description' content='Ionize User Guide' />

</head>
<body>

<!-- START NAVIGATION -->
<div id="nav"><div id="nav_inner"><script type="text/javascript">create_menu('../');</script></div></div>
<div id="nav2" onclick="myHeight.toggle();"><a name="top"></a><a href="javascript:void(0);"><img src="../images/nav_toggle_darker.jpg" width="154" height="43" border="0" title="Toggle Table of Contents" alt="Toggle Table of Contents" /></a></div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>Ionize User Guide Version 0.9.7</h1></td>
<td id="breadcrumb_right"><a href="../toc.html">Table of Contents Page</a></td>
</tr>
</table>
</div>
<!-- END NAVIGATION -->


<!-- START BREADCRUMB -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td id="breadcrumb">
<a href="http://www.ionizecms.com/">Ionize Home</a> &nbsp;&#8250;&nbsp;
<a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
Special Tags
</td>
<td id="searchbox"><form method="get" action="http://www.google.com/search"><input type="hidden" name="as_sitesearch" id="as_sitesearch" value="ionizecms.com/user-guide" />Search User Guide&nbsp; <input type="text" class="input" style="width:200px;" name="q" id="q" size="31" maxlength="255" value="" />&nbsp;<input type="submit" class="submit" name="sa" value="Go" /></form></td>
</tr>
</table>
<!-- END BREADCRUMB -->

<br clear="all" />


<!-- START CONTENT -->
<div id="content">

<h1>Special Tags</h1>

<p>These tags aren't content tag, but dedicated to useful functionalities.</p>


<h2>partial</h2>

<p>Returns the result of a view used as partial.</p>
<p>The called view can contains other tags, but can also be a pure PHP view.</p>

<pre>
<dfn>&lt;!-- Returns the content of the view located in the folder : /themes/your_theme/views/default/header.php --></dfn>
&lt;ion:partial view="default/header" [ php="true" ] />
</pre>

<h3>Attributes</h3>

<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
	<th>Attribute</th>
	<th>Optional</th>
	<th>Values</th>
</tr>
<tr>
	<td class="td"><kbd>view</kbd></td>
	<td class="td">no</td>
	<td class="td">
		The path to the view, relative to the <dfn>themes/your_theme/views</dfn> folder.
	</td>
</tr>
<tr>
	<td class="td">php</td>
	<td class="td">yes</td>
	<td class="td">
		<strong>true / false</strong><br/>
		Default value : <kbd>false</kbd>.<br/>
		If set to true, force the load of the view as pure PHP view.<br/>If not set, it will return the view parsed as it doesn't contains PHP but tags.
	</td>
</tr>
</table>

<h2>field</h2>

<p>Gets and returns a value from :</p>
<ul>
	<li>An extended field</li>
	<li>An Article</li>
	<li>A Page</li>
	<li>A Media</li>
</ul>

<pre>
&lt;ion:field name="title" from="table_name" core="true" />
</pre>


<h3>Attributes</h3>
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
	<th>Attribute</th>
	<th>Optional</th>
	<th>Values</th>
</tr>
<tr>
	<td class="td"><kbd>name</kbd></td>
	<td class="td">no</td>
	<td class="td">The field name</td>
</tr>
<tr>
	<td class="td"><kbd>from</kbd></td>
	<td class="td">no</td>
	<td class="td">
		The content object. Can be "<strong>page</strong>", "<strong>article</strong>" or "<strong>media</strong>".<br/>
		Needs to be set, even the tag is used in a parent loop tag.
	</td>
</tr>
<tr>
	<td class="td">core</td>
	<td class="td"></td>
	<td class="td">
		<strong>true / false</strong>
		Default value : <kbd>false</kbd>.<br/>
		If set to <strong>true</strong>, returns the value from the Ionize core object.<br/>
		Useful when an <strong>extended field</strong> has the same name than an existing object field.<br/>
		<strong>Example</strong> : If you created an extended field called "<strong>title</strong>" and you want to get the title of a page, you will need to set "core" to true, so the tag knows it had to returns the article title and not the extended field with the same name.
	</td>
</tr>
</table>



</div>
<!-- END CONTENT -->


<div id="footer">
<p>
Previous Topic:&nbsp;&nbsp;<a href="----.html">------</a>
&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="#top">Top of Page</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
<a href="../index.html">User Guide Home</a>&nbsp;&nbsp;&nbsp;&middot;&nbsp;&nbsp;
Next Topic:&nbsp;&nbsp;<a href="-----.html">-----</a>
</p>
<p><a href="http://www.ionizecms.com/">Ionize website</a></p>
</div>

</body>
</html>